package com.klb.action.admin;

import com.klb.service.admin.impl.QuitServiceAdminImpl;
import com.opensymphony.xwork2.ActionSupport;

/**
 * Created by fujia on 2016/7/2.
 */
public class QuitActionAdmin extends ActionSupport {
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private QuitServiceAdminImpl quitServiceAdmin;


	public void setQuitServiceAdmin(QuitServiceAdminImpl quitServiceAdmin) {
		this.quitServiceAdmin = quitServiceAdmin;
	}



	@Override
    public String execute() throws Exception {

        if (this.quitServiceAdmin.quitIsSuccess()){
            return SUCCESS;
        }

        return INPUT;
    }
}
